package config

import (
	baseAuth "gitee.com/zaiqiang231/go-base-app/base_app/auth"
	baseConfig "gitee.com/zaiqiang231/go-base-app/base_app/config"
)

var (
	GlobalAppConfig = new(AppConfig)
	ServiceName     = "zcamp-service-file"
)

var (
	GlobalJwtAuth   *baseAuth.JWTAuth
	AuthIdentityKey = "username"
)

type AppConfig struct {
	baseConfig.AppConfig `mapstructure:",squash"` //结构体的字段提到父结构中
	MinioConfig          *MinioConfig             `mapstructure:"minio"`
}

type MinioConfig struct {
	Endpoint        string `mapstructure:"endpoint"`
	AccessKeyID     string `mapstructure:"accessKeyID"`
	SecretAccessKey string `mapstructure:"secretAccessKey"`
}
